<?php

namespace App\Repositories;

use App\Models\StaffOpenid;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class StaffOpenidRepository
 * @package App\Repositories
 * @version December 8, 2018, 7:57 pm CST
 *
 * @method StaffOpenid findWithoutFail($id, $columns = ['*'])
 * @method StaffOpenid find($id, $columns = ['*'])
 * @method StaffOpenid first($columns = ['*'])
*/
class StaffOpenidRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'uid',
        'openid',
        'nickname',
        'avatar',
        'gender',
        'country',
        'province',
        'city'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return StaffOpenid::class;
    }
}
